//  Omnima Limited Copyright (c) 2011
//
//  Targets STM32L and STM32F family MCUs as used 
//  on the omnima-stm32-expander board
//
//  STM32L-Discovery GCC Demo program
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#ifndef TRACEH

#include "uart.h"

#ifdef DEBUG
#define TRACE(x) UART_printf(x);
#define TRACE1(x,p1) UART_printf(x,p1);
#define TRACE2(x,p1,p2) UART_printf(x,p1,p2);
#define TRACE3(x,p1,p2,p3) UART_printf(x,p1,p2,p3);
#define TRACE4(x,p1,p2,p3,p4) UART_printf(x,p1,p2,p3,p4);
#else
#define TRACE(x)
#define TRACE1(x,p1)
#define TRACE2(x,p1,p2)
#define TRACE3(x,p1,p2,p3)
#define TRACE4(x,p1,p2,p3,p4)
#endif

#endif
